#!/usr/bin/python3.8.9
# -*- coding: utf-8 -*-

# @Author  : Tina Yu
# @Time    : 2021-12-30 19:24
from appium.webdriver.common.mobileby import MobileBy

from homework.task_app.base.base_page import BasePage
from homework.task_app.page.address_list_page import AddressListPage


class MainPage(BasePage):

    def goto_address_list(self):
        """跳转到通讯录页面"""
        # 点击通讯录，进入通讯录页面
        self.find_and_click(MobileBy.XPATH, "//*[@text='通讯录']")
        return AddressListPage(self.driver)
